package cn.edu.scau.cmi.xiaozecheng.client;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * @author xiao
 */

public class SingletonClient extends Application {
	@Override
	public void start(Stage primaryStage) {
		try {
			Parent root = FXMLLoader.load(getClass().getResource("/cn/edu/scau/cmi/xiaozecheng/singleton/UI.fxml"));
			Scene scene = new Scene(root);
			primaryStage.setScene(scene);
			root.resize(600, 800);
			primaryStage.setTitle("实验二 单例与多例");
			primaryStage.sizeToScene();
			primaryStage.show();
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		launch(args);
	}
}